<?php
/**
 * Created by PhpStorm.
 * User: geyouwen
 * Date: 17/1/20
 * Time: 下午5:34
 */

namespace App\Model\Bll;



use App\Model\Dao\User;
use Jenssegers\Mongodb\Eloquent\Model;

class UserBll extends Model
{
//    public $user;
//
//    public function __construct(User $user)
//    {
//        $this->user = $user;
//    }

    public function getAll()
    {
        $user = new User();
        return $user->getall();
    }

    public function insert($data)
    {
        $user = new User();
        return $user->insert($data);
    }

}